import request from "../axios/index"
export function getData(url) {
    return request({
      url:`/Static${url}`,
      method: 'get',
    })
  }


  export function getSearch(data) {
    return request({
      url:'/api/data/loadAllCancers',
      data,
      method: 'post',
      headers: {
        'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
      },
    })
  }
  
  export function getSearchMet(data) {
    return request({
      url:'/api/data/loadCancerMetabolites',
      data,
      method: 'post',
      headers: {
        'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
      },
    })
  }
  export function analysis(params) {
    return request({
      url:'/api/data/checkGenes',
      params,
      method: 'post',
    
    })
  }
  export function doWork(params) {
    return request({
      url:'/api/data/doWork',
      params,
      method: 'post',
    
    })
  }
  export function loadResults(params) {
    return request({
      url:'/api/data/loadResults',
      params,
      method: 'post',
    
    })
  }

  // export function loadResults(params) {
  //   return request({
  //     url:'/api/data/loadResults',
  //     params,
  //     method: 'post',
    
  //   })
  // }

  export function runJob(data) {
    return request({
      url:'/api/data/runJob',
      data,
      method: 'post',
    
    })
  }

  export function getlft(url) {
    return request({
      url:`/Dynamic/data/${url}`,
      method: 'get',
    
    })
  }
  

  export function getRight(url) {
    return request({
      url:`/Dynamic/dynamic_output/${url}`,
      method: 'get',
      headers:{
        'Cache-Control': 'no-cache'
      }
      
    })
  }
  
  export function geneJudge(url) {
    return request({
      url:`/api/data/geneJudge`,
      method: 'post',
      headers: {
        'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
      },
    })
  }
  
    
  export function runMapJob(data) {
    return request({
      url:`/api/data/runMapJob`,
      method: 'post',
      data
      // headers: {
      //   'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
      // },
    })
  }


  
  export function gettsv(url) {
    return request({
      url,
      method: 'get',
    })
  }
  

  export function getDasta(url) {
    return request({
      url,
      method: 'get',
    })
  }
